名称 | 役割 | 説明 |
---|---|---|
MinGW | コンパイラ | Windows 用の GNU ツールチェーン。 とにかく Windows 用の gcc や GNU ld。 "Windows 用" とは、Windows 上で動作したり、Windows 用のアプリが作れたりすること。 要するに Visual C++ や Clang/LLVM みたいなもの。 |
mingw-w64 | コンパイラ | MinGW のフォーク。Win64 向けの改良が加わっており、2021 年現在の主流。 |
Cygwin | POSIX 環境 | Windows 用の POSIX 環境。cygwin1. |
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import json | |
from datetime import datetime | |
from matplotlib import pyplot | |
age_ts = [] | |
age_keys = ["prob_13_17", "prob_18_24", "prob_25_34", "prob_35_over"] | |
age_lists = {k:[] for k in age_keys} | |
gen_ts = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float getTemp(){ | |
//wait until predefined amount between IC request. | |
//Dont constantly request, the chip will heat up. | |
if(millis() - previousTempReading < tempReadingInterval){ | |
Serial.println("Passing temperature reading. This is not the time."); | |
return; | |
} | |
//We cant just request and receive the temperature reading. It takes time on DS18B20 devices. | |
//For 12bit precision it takes 750ms to finish conversion. | |
//Only usable for first device on the line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install DSPy: pip install dspy | |
import dspy | |
# Ollam is now compatible with OpenAI APIs | |
# | |
# To get this to work you must include `model_type='chat'` in the `dspy.OpenAI` call. | |
# If you do not include this you will get an error. | |
# | |
# I have also found that `stop='\n\n'` is required to get the model to stop generating text after the ansewr is complete. | |
# At least with mistral. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"math/rand" | |
"os" | |
"path/filepath" | |
"time" |
** Command to list all infected files:
grep -lr --include=*.php "eval(base64_decode" /path/to/webroot
grep -lr --include=*.php "eval" .
grep -lr --include=*.php "base64" .
grep -lr --include=*.php "eval(base64_decode" /path/to/webroot | xargs sed -i.bak 's/<?php eval(base64_decode[^;]*;/<?php\n/g'
DIY Quantitative Stock Market Investing
Dr. Yves J. Hilpisch | The Python Quants & The AI Machine
Saarbruecken, 6. SaarPython Meetup, 30. August 2022
(short link to this Gist: http://bit.ly/spm_diy)
- 2011 - A trip through the Graphics Pipeline 2011
- 2015 - Life of a triangle - NVIDIA's logical pipeline
- 2015 - Render Hell 2.0
- 2016 - How bad are small triangles on GPU and why?
- 2017 - GPU Performance for Game Artists
- 2019 - Understanding the anatomy of GPUs using Pokémon
- 2020 - GPU ARCHITECTURE RESOURCES
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Simple script to plot your Discord machine-learning predicted age and gender from the data dump. | |
To use, simply put this script in your activity/analytics/ folder of your Discord data dump and run it. | |
You may need to install matplotlib first: | |
pip install -U matplotlib | |
thrown together by rebane2001 | |
""" |
NewerOlder